_ab_complete() {
	COMPREPLY=()
	local word="${COMP_WORDS[COMP_CWORD]}"
	local completions="$(ab --cmplt "${COMP_WORDBREAKS}" "${COMP_CWORD}"\
		"${COMP_LINE}" "${COMP_POINT}" "${COMP_WORDS[@]}" 2>> /tmp/auto_complete_log)"
	COMPREPLY=( $(compgen -W "$completions" -- "$word") )
}

complete -F _ab_complete ab
